package test.factories;

import dominio.Cost;

import java.util.ArrayList;

/**
 * Created by Rafael Simon Garcia on 11/17/13.
 */
public class CostsListFactory {

    public static ArrayList<Cost> Create(int amountOfCosts, int ownerId){
        ArrayList<Cost> result = new ArrayList<>(amountOfCosts);

        for(int i = 0; i< amountOfCosts; i++)
            result.add(CostFactory.Create(i, ownerId, amountOfCosts));

        return result;
    }
}
